package com.zbkj.service.service;

import com.github.pagehelper.PageInfo;
import com.zbkj.common.request.*;
import com.zbkj.common.model.traceable.TraceableOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.response.*;
import com.zbkj.common.vo.MyRecord;

import java.util.List;
/**
* @author dazongzi
* @description TraceableOrderService 接口
* @date 2025-07-10
*/
public interface TraceableOrderService extends IService<TraceableOrder> {

    Boolean create(TraceableOrderSaveRequest traceableOrderSaveRequest);

    /**
     * 分页查询溯源订单表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<TraceableOrderPageDataResponse> getList(TraceableOrderSearchRequest request, PageParamRequest pageParamRequest);
    List<TraceableOrderPageDataBrandResponse> getListBrand(TraceableOrderSearchBrandRequest request, PageParamRequest pageParamRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    TraceableOrderDetailResponse getDetails(Integer id);

    PageInfo<TraceableOrderFrontSearchResponse> getListFront(TraceableOrderFrontSearchRequest request, PageParamRequest pageParamRequest);

    OrderNoResponse createOrder(TraceableOrderFrontSaveRequest request);

    void callBack(String orderNo);

    TraceableOrderDetailFrontResponse getDetailsH5(Integer id);

    TraceableOrderDetailBrandResponse getDetailsBrand(Integer id);
}